package com.aqumon.www.service;

import com.aqumon.www.entity.persistent.JenkinsConfig;
import com.aqumon.www.entity.request.jenkins.ConfigCreateReq;
import com.aqumon.www.entity.request.jenkins.ConfigDeleteReq;
import com.aqumon.www.entity.request.jenkins.ConfigEditReq;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * jenkins服务器配置 服务类
 * </p>
 *
 * @author aqumon
 * @since 2022-05-19
 */
public interface JenkinsConfigService extends IService<JenkinsConfig> {
    /**
     * 保存jenkins服务器配置
     * @return List<BuildResp>
     */
    int saveConfig(ConfigCreateReq configCreateReq);

    /**
     * 编辑jenkins服务器配置
     * @return message
     */
    int editConfig(ConfigEditReq configEditReq);

    /**
     * 删除jenkins服务器配置
     * @return message
     */
    String deleteConfig(ConfigDeleteReq deleteConfigReq);

    /**
     * 获取所有jenkins配置
     * @return List<BuildResp>
     */
    List<JenkinsConfig> listAllConfig();
}
